package org.xiaoyu.rpc.remoting;


import io.netty.channel.Channel;
import org.xiaoyu.rpc.common.extension.annotations.SPI;
import org.xiaoyu.rpc.remoting.packet.Invocation;
import org.xiaoyu.rpc.remoting.packet.Result;

/**
 * Created By Have
 * 2021/7/5 16:38
 */
@SPI("rpc")
public interface RequestHandler {
    public Result handle(Channel channel, Invocation invocation);
}
